package cn.dhnep.demo.service;

import cn.dhnep.demo.pojo.Order;
import cn.dhnep.demo.pojo.frontvo.OrderAddCount;
import cn.dhnep.demo.pojo.frontvo.OrderVo;
import cn.dhnep.demo.util.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dhn
 * @since 2021-08-18
 */
public interface OrderService extends IService<Order> {

    List<Order> selectPageList(Page page);
    //系统公告分页数据总数
    Integer selectPageCount(Page page);

    Order idqueryOrder(Integer id);

    int updateorder(Order order);

    /**
     * 查看昨日下单情况
     */
    List<OrderAddCount> getYesterdayOrder(String name);

    /**
     * 骑手昨日收益
     */
    List<OrderVo> horsemanEvenDayEarnings();
}
